package com.xh.web.constant;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 数据库模块常量信息
 *
 * @author nxh
 */
public class DbModuleConstants
{
    public static List<String> dataType=new ArrayList<String>();

    public static Map<String,String> dataType1=new HashMap<>();

    static {
        dataType.add("varchar");
        dataType.add("nvarchar");
        dataType.add("char");
        dataType.add("varchar2");
        dataType.add("nvarchar2");

        dataType1.put("varchar","varchar");
        dataType1.put("nvarchar","nvarchar");
        dataType1.put("char","char");
        dataType1.put("nchar","nchar");
        dataType1.put("varchar2","varchar2");
        dataType1.put("nvarchar2","nvarchar2");
        dataType1.put("number","number");
        dataType1.put("decimal","decimal");
        dataType1.put("float","float");
        dataType1.put("double","double");
    }

    /**
     * 数据库类型
     */
    public static final String ORACLE = "oracle";
    public static final String MYSQL = "mysql";



    /**
     * 生成模板类型
     */
    public static final String MYBATIS = "mybatis";
    public static final String MYBATISPLUS = "mybatisplus";
    public static final String HIBERNATE = "hibernate";

    /**
     * SQL代码生成种类
     */
    public static final String SQL_TABLE_MYSQL = "table_mysql";
    public static final String SQL_TABLE_ORACLE = "table_oracle";
    public static final String SQL_INDEX_MYSQL = "index_mysql";
    public static final String SQL_INDEX_ORACLE = "index_oracle";
    public static final String SQL_COLUMN_MYSQL = "column_mysql";
    public static final String SQL_COLUMN_ORACLE = "column_oracle";

    public static final String SQL_TABLE_SQLSERVER = "table_sqlserver";
    public static final String SQL_INDEX_SQLSERVER = "index_sqlserver";
    public static final String SQL_COLUMN_SQLSERVER = "column_sqlserver";

    public static final String SQL_TABLE_DM = "table_dm";
    public static final String SQL_INDEX_DM = "index_dm";
    public static final String SQL_COLUMN_DM = "column_dm";

}
